package com.by.mapper;

import com.by.bean.ProductCategory;
import com.by.common.crud.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
    /**
     * 查询类别
     * @param pid 根据父id查询子类
     * @return
     */
    List<ProductCategory> queryChild(int pid );

}
